package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author nanyang
 */
public class TTopicDto {

    @Data
    @ApiModel("新增课题")
    public static class Insert {
        @ApiModelProperty("课题名称")
        private String topicName;
        @ApiModelProperty("课题简称")
        private String topicShortName;
        @ApiModelProperty("类型")
        private Byte type;
        @ApiModelProperty("类别")
        private String category;
        @ApiModelProperty("牵头单位")
        private String leading;
        @ApiModelProperty("负责人")
        private String person;
        @ApiModelProperty("状态（0正常 1暂停）")
        private Byte status;
    }

    @Data
    @ApiModel("修改课题")
    public static class Update {
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("课题名称")
        private String topicName;
        @ApiModelProperty("课题简称")
        private String topicShortName;
        @ApiModelProperty("类型")
        private Byte type;
        @ApiModelProperty("类别")
        private String category;
        @ApiModelProperty("牵头单位")
        private String leading;
        @ApiModelProperty("负责人")
        private String person;
        @ApiModelProperty("状态（0正常 1暂停）")
        private Byte status;
    }

    @Data
    @ApiModel("删除课题")
    public static class Delete {
        @ApiModelProperty("删除ID")
        private List<Long> idList;
    }


    @Data
    @ApiModel("查询课题")
    public static class Query {
        @ApiModelProperty("课题名称")
        private String topicName;
        @ApiModelProperty("课题简称")
        private String topicShortName;
        @ApiModelProperty("类型")
        private Byte type;
        @ApiModelProperty("类别")
        private String category;
        @ApiModelProperty("牵头单位")
        private String leading;
        @ApiModelProperty("负责人")
        private String person;
        @ApiModelProperty("状态（0正常 1暂停）")
        private Byte status;
    }



}
